using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Website
{
    public partial class _Default : System.Web.UI.Page
    {
        private Domain.Account account;

        protected void Page_Load(object sender, EventArgs e)
        {
            // Retrieve account from session
            account = (Domain.Account) Session["user"];

            // Update label
            if (account != null) lblStatus.Text = "Logged in as " + account.Username;
            else lblStatus.Text = "Not logged in yet :-(";
        }
    }
}
